<?php
class AlipayModel extends Action{
	//test
	//
	//############test
	public function getmobyalipayno($alipayno){
		$info=collectinfo(__METHOD__,'$alipayno',array($alipayno));
		
		$alipay=M('alipay');
		$alipayo=$alipay->where("alipayno='".$alipayno."'")->find();

		return createarrok('ok',$alipayo,'',$info);
	}

	public function addbyalipayno($alipaytm,$alipaymingmu,$alipayno,$alipayobj,$alipaymoney){
		$info=collectinfo(__METHOD__,'$alipaytm,$alipaymingmu,$alipayno,$alipayobj,$alipaymoney',array($alipaytm,$alipaymingmu,$alipayno,$alipayobj,$alipaymoney));
		
		$alipay=M('alipay');
		$dt=array('alipaytm'=>$alipaytm,'alipaymingmu'=>$alipaymingmu,'alipayno'=>$alipayno,'alipayobj'=>$alipayobj,'alipaymoney'=>$alipaymoney);
		$alipay->data($dt)->add();

		return createarrok('ok',$data,'',$info);
	}
	

} 
?>